package org.dromara.germbank.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.dromara.germbank.domain.BusOperationsAdvertisement;


/**
 * 广告业务对象
 *
 * @author congxing
 */
@Data
@AutoMapper(target = BusOperationsAdvertisement.class, reverseConvertGenerate = false)
public class BusOperationsAdvertisementBo{

    /**
     * ID (请确认BaseEntity中的id类型，此处假设为Long)
     */
    private Long id;

    /**
     * 广告名称
     */
    @NotBlank(message = "广告名称不能为空")
    @Size(min = 1, max = 255, message = "广告名称长度不能超过{max}个字符")
    private String name;

    /**
     * 所在页面
     */
    @NotBlank(message = "所在页面不能为空")
    @Size(min = 1, max = 100, message = "所在页面长度不能超过{max}个字符")
    private String page;

    /**
     * 广告位置
     */
    @Size(max = 100, message = "广告位置长度不能超过{max}个字符")
    private String position;
}
